<include file="Public/head"/>
<body class="no-skin">
<include file="Public/header"/>
<div class="main-container" id="main-container">
    <script type="text/javascript">
        try {
            ace.settings.check('main-container', 'fixed')
        } catch (e) {
        }
    </script>

    <include file="Public/sidebar"/>
    <div class="main-content">
        <div class="main-content-inner">
            <!-- #section:basics/content.breadcrumbs -->
            <include file="Public/breadcrumbs"/>

            <!-- /section:basics/content.breadcrumbs -->
            <div class="page-content">
                <include file="Public/set"/>

                <!-- /section:settings.box -->
                <div class="row">
                    <div class="col-xs-12">
                        <!-- PAGE CONTENT BEGINS -->
                        <div class="row">
                            <form class="form-inline" action="" style=" padding: 0px 5px; float:left" method="get">
                                <label class="inline">管理员：</label>
								<select name="admin_id" class="form-control">
									<option value="">请选择</option>
									<volist name="member_list" id="vo">
									<option value="{$vo.uid}" <eq name="Think.get.admin_id" value="$vo['uid']">selected</eq>>{$vo.user}</option>
									</volist>
								</select>
								<label class="inline">SKU：</label>
                                <input type="text" name="sku" value="{:I("sku")}" class="form-control">
                                <button type="submit" class="btn btn-purple btn-sm">
                                    <span class="ace-icon fa fa-search icon-on-right bigger-110"></span>
                                    Search
                                </button>
                            </form>
                        </div>
                        <div class="space-4"></div>
                        <div class="row">
                                <table class="table table-striped table-bordered table-hover">
                                    <thead>
                                    <tr>
                                        <th class="center">ID</th>
                                        <th>操作管理员</th>
                                        <th>上传文件名</th>
                                        <th>上传时间</th>
                                        <th>上传结束时间</th>
                                        <th>上传文件</th>
                                        <th>上传文件大小</th>
                                        <th>导入完成时间</th>
                                        <th>操作</th>
                                    </tr>
                                    </thead>
									<style>
										.export_list_info{ margin:10px 30px;}
										.export_list_info dl dd,.export_list_info dl dt{ line-height:180%;}
										.export_list_info dl dd{ color:#666}
									</style>
                                    <tbody>
                                    <volist name="lists" id="val">
                                        <tr>
                                            <td class="center">{$val['id']}</td>
                                            <td>{$val['user']}</td>
                                            <td>{$val['upload_file_name']}</td>
                                            <td><neq name="val.upload_time" value="0">{:date('Y-m-d H:i:s',$val['upload_time'])}<else/>--</neq></td>
                                            <td><neq name="val.upload_over_time" value="0">{:date('Y-m-d H:i:s',$val['upload_over_time'])}<else/>--</neq></td>
                                            <td><empty name="val.upload_max">--<else/>{:round($val['upload_max']/1000000,2)} M</empty></td>
                                            <td><empty name="val.export_file">--<else /><a href="/{$val['export_file']}" style="margin:0px auto;" target="_blank"><i class="ace-icon fa fa-download">下载</i></a></empty></td>
                                            <td><neq name="val.export_over_time" value="0">{:date('Y-m-d H:i:s',$val['export_over_time'])}<else/>--</neq></td>
                                            <td><empty name="val.content">--<else/><a href="javascript:;" id="show_info" data-id="{$val.id}"><i class="ace-icon fa fa-bar-chart-o">详情查看</i></a></empty></td>
                                        </tr>
										<tr id="export_info_{$val.id}" style="display:none; background:#fff;">
                                            <td colspan="9">
												<div class="export_list_info">
													<dl>
														<dt>成功SKU数据(<empty name="val.content.success">0<else/>{:count(explode(',',$val['content']['success']))}</empty>)：</dt>
														<dd><empty name="val.content.success">暂无<else/>【{:str_replace(',','】,【',$val['content']['success'])}】</empty></dd>
													</dl>
													<dl>
														<dt>重复SKU数据(<empty name="val.content.repeat">0<else/>{:count(explode(',',$val['content']['repeat']))}</empty>)：</dt>
														<dd><empty name="val.content.repeat">暂无<else/>【{:str_replace(',','】,【',$val['content']['repeat'])}】</empty></dd>
													</dl>
													<dl>
														<dt>失败SKU数据(<empty name="val.content.error">0<else/>{:count(explode(',',$val['content']['error']))}</empty>)：</dt>
														<dd><empty name="val.content.error">暂无<else/>【{:str_replace(',','】,【',$val['content']['error'])}】</empty></dd>
													</dl>
												</div>
											</td>
                                        </tr>
                                    </volist>
                                    </tbody>
                                </table>
                            {$page}
                        </div>
                        <!-- PAGE CONTENT ENDS -->
                    </div><!-- /.col -->
                </div><!-- /.row -->
            </div><!-- /.page-content -->
        </div>
    </div><!-- /.main-content -->
    <include file="Public/footer"/>

</div><!-- /.main-container -->

<include file="Public/footerjs"/>
<!-- inline scripts related to this page -->
<script type="text/javascript">
    $(function () {
		$('a#show_info').click(function(){
			$('[id*="export_info_"]').each(function(){
				$(this).hide();
			});
			$('#export_info_' + $(this).attr('data-id')).show();
		});
    });
</script>
</body>
</html>
